package edu.mit.compilers.assembly.x64.basic;

import java.util.ArrayList;

public interface X64Operand {
    default boolean isMemoryOperand() {
        return getType() == Type.MEM;
    }

    default boolean isRegisterOperand() {
        return getType() == Type.REGISTER;
    }

    enum Type {
        IMM,
        REGISTER,
        MEM,
    }
    String getAddress();
    Type getType();
    ArrayList<X64Register> getUsedRegisters();

}
